package com.bootdo.common.rabbitmqconfig;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 生产者
 */
//@Service
public class AmqpServiceImpl {
    @Autowired
    private AmqpTemplate amqpTemplate;

    public void convertAndSend(String message) {
        amqpTemplate.convertAndSend("com.queue.notify.hello", message);
    }

}

